<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
		<!--<link rel="icon" href="<%= BASE_URL %>favicon.ico">-->
		<!--<link rel="stylesheet" href="//unpkg.com/vue-ydui/dist/ydui.rem.css">-->
		<link rel="stylesheet" href="lib/cs/ydui.rem.css" />
		<script src="lib/js/ydui.flexible.js"></script>
		<!--<script src="//unpkg.com/vue-ydui/dist/ydui.flexible.js"></script>-->
		<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
		<script src="https://jic.talkingdata.com/app/h5/v1?appid=A96E01674FF94F9E8B8E2AB84E3157E3&vn=应用版本名称&vc=0001"></script>

		<title></title>
	</head>

	<body>
		<noscript>
      <strong>We're sorry but myobject doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
		<div id="app"></div>
		<script>
			var api_url = 'http://xiruixy.sirrahhk.com/'; //正式
			var dev = false
			var shareUrl = 'http://xiruixy.sirrahhk.com/public/dist/index.html'
			if(window.location.href.indexOf('http://localhost') >= 0 || window.location.href.indexOf('http://172.16.1') >= 0) {
				//因为代理了，所以不用死地址
				api_url = '';
				dev = true
			} else if(window.location.href.indexOf('http://xiruixy.sirrahhk.com/') >= 0) {
				api_url = 'http://xiruixy.sirrahhk.com/' //测试
				shareUrl = 'http://xiruixy.sirrahhk.com/public/dist/index.html'
			}
			var config = {
				api_url: api_url,
				dev: dev, //开发环境，
				shareUrl: shareUrl, //分享地址
				qi_niu_img_url: 'http://pili-vod.xiruixy.sirrahhk.com/', //七牛地址保存
				shareImg: 'http://shipin.zxwstong.net/Fgvjrv-HsLTWeThbQNCDPju7N1-t.png', //分享首页图片
				shareImgLogo: '',
				shareTitle:'燕教授云端商学院',
				shareDesc:'专注于国民健康生活方式',
				appId: 'wx6956682683d57e14', // wxc8bbac8e29d324a9
				downAppUrl: 'http://xiruixy.sirrahhk.com/public/download/index.html',
			}
			
			
			
			

			if(typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
				handleFontSize();
			} else {
				if(document.addEventListener) {
					document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
				} else if(document.attachEvent) {
					document.attachEvent("WeixinJSBridgeReady", handleFontSize);
					document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
				}
			}

			function handleFontSize() {
				// 设置网页字体为默认大小
				WeixinJSBridge.invoke('setFontSizeCallback', {
					'fontSize': 0
				});
				// 重写设置网页字体大小的事件
				WeixinJSBridge.on('menu:setfont', function() {
					WeixinJSBridge.invoke('setFontSizeCallback', {
						'fontSize': 0
					});
				});
			}
		</script>
		<!--<script src="./lib/js/jquery-2.1.4.min.js"></script>-->
		<!-- built files will be auto injected -->
	</body>

</html>